package com.ctshk.rpc.scenic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.scenic.entity.ScenicProduct;
import com.ctshk.rpc.scenic.entity.ScenicProductChannelOfflineAgentCustom;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *
 * </p>
 *
 * @author xuhui
 * @since 2/2/2021
 */
public interface ScenicProductChannelOfflineAgentCustomMapper extends BaseMapper<ScenicProductChannelOfflineAgentCustom> {
    /**
     * 清空门票产品线下渠道权限范围表
     * @param
     * @param
     */
    @Update("UPDATE t_scenic_product_channel_offline_agent_custom \n" +
            "SET is_deleted = 1 \n" +
            "WHERE product_id = #{product_id}")
    Integer clearByProductId(@Param("product_id") Long productId, @Param("modified_id")Long userId);
}
